/*
 * Location.h
 *
 *  Created on: 25 mars 2012
 *      Author: houcine
 */

#ifndef LOCATION_H_
#define LOCATION_H_
#include<string>
#include<iostream>
#include<fstream>
namespace std {

class Location {
private:
	string matVoiture;
	long idAgence;
	long numClient;
	string dateLocation;
	int nbJours;
	double coute;
public:
	Location();
	Location(string,long,long,string,int,double);
	virtual ~Location();
	void afficher();
	double getCoute() const;
	void setCoute(double coute);
	string getDateLocation() const;
	void setDateLocation(string dateLocation);
	long getIdAgence() const;
	void setIdAgence(long idAgence);
	string getMatVoiture() const;
	void setMatVoiture(string matVoiture);
	int getNbJours() const;
	void setNbJours(int nbJours);
	long getNumClient() const;
	void setNumClient(long numClient);
	friend ofstream& operator<<(ofstream& ,const Location&);
	friend ifstream& operator>>(ifstream& ,Location&);
};
ofstream& operator<<(ofstream& ,const Location&);
ifstream& operator>>(ifstream& ,Location&);

} /* namespace std */
#endif /* LOCATION_H_ */
